package type1;

/**
 * @projectName: com.xiayuanxing.designPattern
 * @className: DispenseOutState
 * @author: xiayuanxing
 * @description: 奖品发放完毕状态
 * 说明，当我们activity改变成DispenseOutState，抽奖活动结束
 * @date: 2022/1/23 16:44
 * @version: 1.0
 */
public class DispenseOutState extends State{

    //初始化时传入活动引用，扣除积分后改变其状态
    RaffleActivity activity;

    public DispenseOutState(RaffleActivity activity) {
        this.activity = activity;
    }

    @Override
    public void deductMoney() {
        System.out.println("奖品发送完了，请下次参加");
    }


    @Override
    public boolean raffle() {
        System.out.println("奖品发送完了，请下次参加");
        return false;
    }


    @Override
    public void dispensePrize() {
        System.out.println("奖品发送完了，请下次参加");
    }
}
